package com.example.day17;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author Lenovo
 */
public class FileInputStreamDemo01 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("myByteStream\\fos.txt");

        int by;
        while ((by=fis.read())!=-1) {
            System.out.print((char)by);
    }
        fis.close();
    }
}
